from django.conf.urls.defaults import *
from django.contrib.comments.models import *

from thesocialstockmarket.users.views import *

urlpatterns = patterns('',

    
    (r'^register/$', register),
    (r'^login/$', 'django.contrib.auth.views.login', {'template_name': 'users/login.html'}),
    (r'^logout/$', 'django.contrib.auth.views.logout', {'template_name': 'users/logout.html'}),
    (r'^stock/$', stock),
    (r'^news/$', news),
    (r'^profile/$', profile),
    (r'^latestnews/$', news),
    (r'^newscontent/(?P<stock_name>\w+)/$', show_news),
    (r'^news/(?P<stock_name>\w+)/(?P<id>\d+)/$', show_news_content),
    (r'^news/(?P<id>\d+)/$', show_latestnews_content),
    (r'^newsrating/$', newsrating),
    (r'^comments/', include('django.contrib.comments.urls')),
    (r'^introduction/$', introduction),
    (r'^members/$', show_members),
    (r'^fri_details/(?P<from_friend>\w+)/$', show_fri_details),
    (r'^fri_details/(?P<from_friend>\w+)/fri_nostock/$', fri_nostock,),
    (r'^fri_request/(?P<to_friend>\w+)/$', fri_request),
    (r'^fri_requestfail/$', fri_requestfail),
    (r'^fri_exist/$', fri_exist),
    (r'^fri_reject/(?P<from_friend>\w+)/$', fri_reject),
    (r'^fri_delete/(?P<from_friend>\w+)/$', fri_delete),
    (r'^fri_confirm/(?P<from_friend>\w+)/$', fri_confirm),
    (r'^friend/$', show_friends),
    (r'^changepassword/$', changepassword),



)
